package TeXing.src.Day2.ZuoYe;

import java.util.Scanner;

//1:输入一个字符串，去掉非数字字符，把剩下的转换乘整数，并输出，比如AbcF2FHk30%$!,则结果是230
public class Zuoye1 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个字符串：");
        String s = input.next();
   //     char[] s1 = s.toCharArray();
        for (int i = 0; i < s.length(); i++)
            if (s.charAt(i) >= 48 && s.charAt(i) <= 57) {
                System.out.print(s.charAt(i));
            }
    }
}
